Dynamic Attributes

A robot A robot

My Learnings

  1. This is about setting the attribute
  2. The value of an attribute can be set directly, like path for src attribute of image.
  3. OR can be set in a variable and variable can be used to set attribute value.
  4. Short Hand: If attribute name and variable name is same there is a short hand.
  5. If images folder is added under, static folder then the path must omit the static from the path.
  6. Note that the path to static assets in your HTML should start with a leading slash / to indicate that it is an absolute path relative to the root of the web server. This ensures that the browser can always find the file regardless of the current URL path.
  7. This may save some time link
  8. Thought: Dynamic Component Template link